|
600
|
How can I display minutes

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).Label = 65536");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1).Label = 1048576");
|
|
599
|
How can I display seconds, from 15 to 15

OBJECT g2antt,level;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "00:00");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).Label = 1048576");
level = _ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1)");
_ObjectSetProperty( level , "Label", "<%ss%>");
_ObjectSetProperty( level , "Count", 15);
|
|
598
|
How can I display seconds

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).Label = 1048576");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1).Label = `<%ss%>`");
|
|
597
|
How can I display seconds

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).Label = 1048576");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1).Label = 16777216");
|
|
596
|
How can I align the text being shown in the chart's header

OBJECT g2antt,level;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
level = _ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0)");
_ObjectSetProperty( level , "Label", "<b><%mmmm%></b> <r><%m%>");
_ObjectSetProperty( level , "Unit", 16);
_ObjectSetProperty( level , "Alignment", 0);
|
|
595
|
How can I hide the tooltip being displayed in the chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).ToolTip = ``");
|
|
594
|
How can I change the tooltip being displayed in the chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).ToolTip = `This is a bit of text that's shown when the cursor hovers the level`");
|
|
593
|
How can I change the visual appearance of the chart's header, where levels are displayed, using your EBN files

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( _ObjectGetProperty( g2antt , "VisualAppearance") , "Add", 1,"c:\exontrol\images\normal.ebn");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "BackColorLevelHeader", 16777216);
|
|
592
|
How can I change the level's foreground color in the chart

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).ForeColor = 255");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1).ForeColor = 16711680");
|
|
591
|
How can I change the level's background color in the chart

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).BackColor = 255");
|
|
590
|
How can I save data on XML format
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "LoadXML", "http://www.exontrol.net/testing.xml");
_ObjectCallMethod( g2antt , "SaveXML", "c:/temp/exg2antt.xml");
|
|
589
|
How can I load data on XML format
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "LoadXML", "http://www.exontrol.net/testing.xml");
|
|
588
|
How can I add icons or pictures to the scale or zoom area

OBJECT chart,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewHeight", 48);
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", -1);
_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img> Week|Third|<img>2</img> Day|<img>pic1</img>|Hour|Min|Sec");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(0) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(17) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
_ObjectSetProperty( chart , "OverviewZoomUnit", 52);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`Right click the Overview area and select a new scale`),0) = False");
|
|
587
|
How can I add icons or pictures to the scale or zoom area

OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "HTMLPicture(`pic1`) = `c:\exontrol\images\zipdisk.gif`");
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewHeight", 48);
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img> Week|Third|<img>2</img> Day|<img>pic1</img>|Hour|Min|Sec");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(0) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(17) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
_ObjectSetProperty( chart , "OverviewZoomUnit", 52);
|
|
586
|
How can I change the width of the unit in the scale or zoom

OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img>|Third|<img>2</img>|<img>1</img>|Hour|Min|Sec");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(0) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(17) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
_ObjectSetProperty( chart , "OverviewZoomUnit", 24);
|
|
585
|
How can I a scale or zoom of the chart, when right clicking the chart's header

OBJECT chart,g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", -1);
_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img>Month|Third|<img>2</img>Week|<img>1</img>Day|Hour|Min|Sec");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(0) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(17) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
_ObjectSetProperty( chart , "OverviewZoomUnit", 64);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellSingleLine(AddItem(`Right click the Overview area and select a new scale`),0) = False");
|
|
584
|
How can I a customize the scale or zoom of the chart

OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
_ObjectSetProperty( chart , "OverviewZoomCaption", "Year|½Year|¼Year|<img>3</img>Month|Third|<img>2</img>Week|<img>1</img>Day|Hour|Min|Sec");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(0) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(17) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(65536) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(1048576) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Label(16777216) = ``");
_ObjectSetProperty( chart , "OverviewZoomUnit", 64);
|
|
583
|
How can I a scale or zoom the chart at runtime

OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod( g2antt , "Images", "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
_ObjectSetProperty( chart , "OverviewZoomCaption", "½Year|¼Year|<img>3</img>Month|Third|<img>2</img>Week|<img>1</img>Day|Hour|Min|Sec");
|
|
582
|
How can I a scale or zoom the chart at runtime

OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "OverviewVisible", 2);
_ObjectSetProperty( chart , "AllowOverviewZoom", 1);
_ObjectSetProperty( chart , "OverviewZoomUnit", 24);
|
|
581
|
How can I a programmatically select a date
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "MarkSelectDateColor", 255);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "SelectLevel", 0);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.SelectDate(#1/2/2001#) = True");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.SelectDate(#1/5/2001#) = True");
|
|
580
|
How can I change the color to select a date, when clicking the chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "BackColor", 16777215);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "MarkSelectDateColor", 255);
|
|
579
|
How can I enable or disable selecting a date, when clicking the chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "BackColor", 16777215);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "MarkSelectDateColor", 16777215);
|
|
578
|
How can I specify the color or the stype for non working hours

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitScale", 65536);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingHours", 127);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingHoursPattern", 12);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingHoursColor", 255);
|
|
577
|
How can I specify the pattern or the stype for non working hours

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitScale", 65536);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingHours", 127);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingHoursPattern", 7);
|
|
576
|
How can I specify the non working hours

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitScale", 65536);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingHours", 127);
|
|
575
|
How can I get the index of the level from the point or cursor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(g2antt, "TemplatePut", _ObjectGetProperty( g2antt , "Chart"))
var_LevelFromPoint = _ObjectCallMethod(g2antt, "ExecuteTemplate", "_ObObj.LevelFromPoint(0,0)");
|
|
574
|
How can I get the link from the point or cursor
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(g2antt, "TemplatePut", _ObjectGetProperty( g2antt , "Chart"))
var_LinkFromPoint = _ObjectCallMethod(g2antt, "ExecuteTemplate", "_ObObj.LinkFromPoint(0,0)");
|
|
573
|
How can I disable or enable at runtime linking the bars
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "AllowLinkBars", -1);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
|
|
572
|
How can I check or verify if a date is a non working day
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", _ObjectCallMethod(g2antt, "ExecuteTemplate", ".Chart.IsNonworkingDate(#1/1/2001#)"));
|
|
571
|
How can I check or verify if a date fits the chart's visible area
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", _ObjectCallMethod(g2antt, "ExecuteTemplate", ".Chart.IsDateVisible(#1/1/2001#)"));
|
|
570
|
How can I add a remove all non working days
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 0);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "AddNonworkingDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "ClearNonworkingDates");
|
|
569
|
How can I add a remove a non working days

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 0);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "AddNonworkingDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "RemoveNonworkingDate", "1/1/2001");
|
|
568
|
How can I add a custom non working days

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 0);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "AddNonworkingDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "AddNonworkingDate", "1/5/2001");
|
|
567
|
How can hide the non working days
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ShowNonworkingDates", 0);
|
|
566
|
How can hide the non working days
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 0);
|
|
565
|
How can I let user adds new bars at runtime
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "AllowCreateBar", 1);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddItem", "Item 1");
_ObjectCallMethod( items , "AddItem", "Item 2");
|
|
564
|
How can I change the width of the links between bars

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LinksStyle", 0);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LinksWidth", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");
|
|
563
|
How can I change the style for the links between bars

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LinksStyle", 4);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");
|
|
562
|
How can I change the color for the links between bars

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LinksColor", 255);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");
|
|
561
|
How can I hide the links between bars
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001","B1");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 2"),"Task","1/6/2001","1/14/2001","B2");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod( items , "AddLink", "L1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 1`,0)"),"B1",_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.FindItem(`Item 2`,0)"),"B2");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ShowLinks", 0);
|
|
560
|
How can I display some grid line in the overview area

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewLevelLines", 0);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/6/2001","1/14/2001");
|
|
559
|
How do I change the tooltip when the cursor hovers the overview area
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewToolTip", "Tooltip on the overview");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/6/2001","1/14/2001");
|
|
558
|
How do I remove the tooltip when the cursor hovers the overview area
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewToolTip", "");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
|
|
557
|
How do I change the selection color in the overview area
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewSelBackColor", 255);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
|
|
556
|
How do I change the background color for the overview area
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewBackColor", 255);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
|
|
555
|
How do I specify the height for the overview area
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewHeight", 16);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
|
|
554
|
How do I show or hide the control's overview area

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "OverviewVisible", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"Task","1/2/2001","1/4/2001");
|
|
553
|
How do I enable or disable resizing the bars at runtime
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "BarsAllowSizing", 0);
|
|
552
|
How do I get the bar from the point or cursor

// MouseMove event - Occurs when the user moves the mouse.
FUNCTION g2anttEvents_MouseMove(OBJECT g2antt, INT Button, INT Shift, INT X, INT Y)
_ObjectCallMethod(g2antt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(g2antt, "TemplatePut", _ObjectGetProperty( g2antt , "Chart"))
Message( _ObjectCallMethod(g2antt, "ExecuteTemplate", "ItemFromPoint(-1,-1,c,h)") );
Message( _ObjectCallMethod(g2antt, "ExecuteTemplate", "_ObObj.BarFromPoint(-1,-1)") );
END
OBJECT chart,g2antt,items;
g2antt = ObjectByName("AN1") ;
ObjectAssociateEvents("g2anttEvents", g2antt);
_ObjectCallMethod( g2antt , "BeginUpdate");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Task");
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "FirstVisibleDate", "12/29/2000");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.PaneWidth(False) = 64");
_ObjectSetProperty( chart , "LevelCount", 2);
items = _ObjectGetProperty( g2antt , "Items");
h1 = _ObjectCallMethod( items , "AddItem", "Task 1");
_ObjectCallMethod( items , "AddBar", h1,"Task","1/2/2001","1/4/2001","K1");
h2 = _ObjectCallMethod( items , "AddItem", "Task 2");
_ObjectCallMethod( items , "AddBar", h2,"Task","1/4/2001","1/6/2001","K2");
_ObjectCallMethod( items , "AddLink", "L1",h1,"K1",h2,"K2");
h3 = _ObjectCallMethod( items , "AddItem", "Task 3");
_ObjectCallMethod( items , "AddBar", h3,"Task","1/8/2001","1/10/2001","K3");
_ObjectCallMethod( items , "AddLink", "L2",h2,"K2",h3,"K3");
_ObjectCallMethod( g2antt , "EndUpdate");
|
|
551
|
How do I specify the color of pattern for non working days
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 66);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDaysPattern", 8);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDaysColor", 255);
|
|
550
|
How do I specify the type of pattern for non working days

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 66);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDaysPattern", 11);
|
|
549
|
How do I specify the non working days
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 66);
|
|
548
|
How do I specify the non working days
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "NonworkingDays", 66);
|
|
547
|
How do I add a predefined bar

OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( _ObjectGetProperty( g2antt , "Chart") , "Bars") , "Add", "CustomBar") , "Color", 255);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2001");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectCallMethod( items , "AddBar", _ObjectCallMethod( items , "AddItem", "Item 1"),"CustomBar","1/2/2001","1/4/2001");
|
|
546
|
How do I change the unit being displayed in the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitScale", 256);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
|
|
545
|
How do I specify the prodefined tooltip being shown on the chart's header, when Zoom method is used

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(16) = `<%m3%>`");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.LabelToolTip(16) = `Tooltip: <%mmmm%>`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "Zoom", "1/1/2007","1/1/2008");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2007");
|
|
544
|
How do I specify the prodefined labels being displayed on the chart, when Zoom method is used

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(16) = `<%m3%>`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "Zoom", "1/1/2007","1/1/2008");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2007");
|
|
543
|
How do I scale or zoom the chart to a specified range of date

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(1) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(2) = ``");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Label(16) = `<%m3%>`");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "Zoom", "1/1/2007","1/1/2008");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2007");
|
|
542
|
How do I scale or zoom the chart to a specified range of date

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 0");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "Zoom", "1/1/2007","7/1/2007");
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2007");
|
|
541
|
How do I find the next date or previous date
OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectSetProperty( chart , "FirstVisibleDate", _ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.NextDate(#1/1/2002#,4096,1)"));
|
|
540
|
How can I change the color for the grid lines in the chart

OBJECT g2antt,level;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "DrawGridLines", -1);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
level = _ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1)");
_ObjectSetProperty( level , "DrawGridLines", -1);
_ObjectSetProperty( level , "GridLineColor", 255);
|
|
539
|
How can I draw, show or hide the grid lines in the chart

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "DrawGridLines", -1);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(1).DrawGridLines = True");
|
|
538
|
How do I change the color to highlight the today in the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "MarkTodayColor", 255);
|
|
537
|
How do I hide or stop highlighting the today area in the chart
OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "MarkTodayColor", _ObjectGetProperty( chart , "BackColor"));
|
|
536
|
Is there any function to get the date in the format that I use for levels, to layout my chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(g2antt, "TemplatePut", _ObjectGetProperty( g2antt , "Chart"))
h = _ObjectCallMethod(g2antt, "ExecuteTemplate", "_ObObj.FormatDate(#1/1/2002#,`<%yyyy%> <%mmmm%> <%d%> <%dddd%>`)");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", h);
|
|
535
|
How can I get the date from the point, cursor
// MouseMove event - Occurs when the user moves the mouse.
FUNCTION g2anttEvents_MouseMove(OBJECT g2antt, INT Button, INT Shift, INT X, INT Y)
_ObjectCallMethod(g2antt, "TemplatePut", "Dim _ObObj")
_ObjectCallMethod(g2antt, "TemplatePut", _ObjectGetProperty( g2antt , "Chart"))
Message( _ObjectCallMethod(g2antt, "ExecuteTemplate", "_ObObj.DateFromPoint(-1,-1)") );
END
|
|
534
|
How can I show or hide the small ticker that shows up when the cursor hovers the chart area
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "DrawDateTicker", -1);
|
|
533
|
How can I change the first visible date in the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2002");
|
|
532
|
How can I scroll or ensure that a specified date time is visible in the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstVisibleDate", "1/1/2002");
|
|
531
|
How can I scroll or ensure that a specified date time is visible to the right side of the chart or control
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "ScrollTo", "1/1/2002",2);
|
|
530
|
How can I scroll or ensure that a specified date time is visible
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Chart") , "ScrollTo", "1/1/2002",2);
|
|
529
|
How can I show or hide the the tooltip being shown when the user scrolls the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ToolTip", "");
|
|
528
|
How can I change the format of the tooltip when the user scrolls the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ToolTip", "ToolTip: <b><%dddd%></b>");
|
|
527
|
How can I hide the chart's scroll bar
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ScrollBar", 0);
|
|
526
|
How can I specify the first day of the week
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "FirstWeekDay", 1);
|
|
525
|
How do I change the AM or PM shortcuts in the chart's header
OBJECT g2antt,level;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "AMPM", "A P");
level = _ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0)");
_ObjectSetProperty( level , "Label", "<%h%> <%AM/PM%>");
_ObjectSetProperty( level , "Unit", 65536);
|
|
524
|
How do I change the name for the months, being displayed in the chart's header

OBJECT g2antt,level;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "MonthNames", "Ianuarie Februarie Martie Aprilie Mai Iunie Iulie August Septembrie Octombrie Noiembrie Decembrie");
level = _ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0)");
_ObjectSetProperty( level , "Label", "<b><%mmmm%></b>");
_ObjectSetProperty( level , "Unit", 16);
|
|
523
|
How do I change the name for the week days, being displayed in the chart's header

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "WeekDays", "Duminica Luni Marti Miercuri Joi Vineri Simbata");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).Label = `<b><%mm%></b>/<%dddd%>`");
|
|
522
|
How do I access a level in the chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "UnitWidth", 64);
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.Level(0).Label = `<b><%mm%></b>/<%dd%>`");
|
|
521
|
How can I change the color for the grid lines between the leves in the chart's header
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "GridLineColor", 255);
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
|
|
520
|
How can I show or hide the grid lines between the leves in the chart's header

OBJECT chart,g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "GridLineColor", 255);
chart = _ObjectGetProperty( g2antt , "Chart");
_ObjectSetProperty( chart , "LevelCount", 2);
_ObjectCallMethod(g2antt, "TemplatePut", "Dim chaObj")
_ObjectCallMethod(g2antt, "TemplatePut", chart)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Level(0).DrawTickLines = False");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "chaObj.Level(1).DrawTickLines = False");
|
|
519
|
How do I change the foreground color for the chart's header

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ForeColorLevelHeader", 255);
|
|
518
|
How do I change the background color for the chart's header

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "BackColorLevelHeader", 255);
|
|
517
|
How do I specify the chart's foreground color
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "ForeColor", 255);
|
|
516
|
How do I specify the chart's background color
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "BackColor", 255);
|
|
515
|
How do I put a picture on the center of the chart
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 17);
|
|
514
|
How do I resize/stretch a picture on the chart's background
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 49);
|
|
513
|
How do I put a picture on the chart's center right bottom side
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 34);
|
|
512
|
How do I put a picture on the chart's center left bottom side
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 32);
|
|
511
|
How do I put a picture on the chart's center top side
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 1);
|
|
510
|
How do I put a picture on the chart's right top corner
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 2);
|
|
509
|
How do I put a picture on the chart's left top corner
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "PictureDisplay", 0);
|
|
508
|
How do I put a picture on the chart's background
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "Picture", _ObjectCallMethod( g2antt , "ExecuteTemplate", "loadpicture(`c:\exontrol\images\zipdisk.gif`)"));
|
|
507
|
How to specify the width for the left or side pane
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(False) = 128");
|
|
506
|
How do I display the header of the chart using multiple levels, lines

OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( _ObjectGetProperty( g2antt , "Chart") , "LevelCount", 2);
|
|
505
|
How do change the width of the chart's area
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(True) = 256");
|
|
504
|
How do I show or hide the control's chart area
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(True) = 0");
|
|
503
|
How do I access the chart's area of the control
OBJECT g2antt;
g2antt = ObjectByName("AN1") ;
_ObjectCallMethod(g2antt, "ExecuteTemplate", "Chart.PaneWidth(0) = 64");
|
|
502
|
How can I select a cells like in excel
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "SingleSel", 0);
_ObjectSetProperty( g2antt , "FullRowSelect", 1);
_ObjectSetProperty( g2antt , "MarkSearchColumn", 0);
_ObjectSetProperty( g2antt , "SearchColumnIndex", -1);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column1");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column2");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column3");
items = _ObjectGetProperty( g2antt , "Items");
_ObjectSetProperty( items , "DefaultItem", _ObjectCallMethod( items , "AddItem", 0));
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,1) = 1");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,2) = 2");
_ObjectSetProperty( items , "DefaultItem", _ObjectCallMethod( items , "AddItem", 3));
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,1) = 4");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,2) = 5");
_ObjectSetProperty( items , "DefaultItem", _ObjectCallMethod( items , "AddItem", 6));
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,1) = 7");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,2) = 8");
|
|
501
|
How can I select a multiple column
OBJECT g2antt,items;
g2antt = ObjectByName("AN1") ;
_ObjectSetProperty( g2antt , "MarkSearchColumn", 0);
_ObjectSetProperty( g2antt , "SingleSel", 0);
_ObjectSetProperty( g2antt , "FullRowSelect", 1);
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column1") , "Selected", -1);
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column2");
_ObjectSetProperty( _ObjectCallMethod( _ObjectGetProperty( g2antt , "Columns") , "Add", "Column3") , "Selected", -1);
items = _ObjectGetProperty( g2antt , "Items");
_ObjectSetProperty( items , "DefaultItem", _ObjectCallMethod( items , "AddItem", 0));
_ObjectCallMethod(g2antt, "TemplatePut", "Dim iteObj")
_ObjectCallMethod(g2antt, "TemplatePut", items)
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,1) = 1");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,2) = 2");
_ObjectSetProperty( items , "DefaultItem", _ObjectCallMethod( items , "AddItem", 3));
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,1) = 4");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,2) = 5");
_ObjectSetProperty( items , "DefaultItem", _ObjectCallMethod( items , "AddItem", 6));
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,1) = 7");
_ObjectCallMethod(g2antt, "ExecuteTemplate", "iteObj.CellValue(0,2) = 8");
_ObjectCallMethod( _ObjectGetProperty( g2antt , "Items") , "SelectAll");
|